﻿using DapperExtensions.Mapper;

namespace ZLWeb.WebApiEntity.EasyQuery
{
    public class CustInfoResponse : ResponseResultInfo
    {
        /// <summary>
        ///  手机号
        /// </summary>
        public string Cellno { get; set; }

        /// <summary>
        ///  所在地
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        ///  email
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        ///  性别
        /// </summary>
        public short Sex { get; set; }

        /// <summary>
        ///  阳历生日
        /// </summary>
        public string Glsr { get; set; }

        /// <summary>
        ///  年龄段id
        /// </summary>
        public int Nld { get; set; }

        /// <summary>
        ///  年龄段说明
        /// </summary>
        public string Nldsm { get; set; }

        /// <summary>
        ///  本次查询生成的动态凭证号
        /// </summary>
        public string Dycardno { get; set; }


    }
    public class CustInfoMapper : ClassMapper<CustInfoResponse>
    {
        public CustInfoMapper()
        {
            Table("#accinfo");
            Map(f => f.Cellno).Column("cellno");
            Map(f => f.Area).Column("area");
            Map(f => f.Email).Column("email");
            Map(f => f.Sex).Column("sex");
            Map(f => f.Glsr).Column("glsr");
            Map(f => f.Nld).Column("nld");
            Map(f => f.Nldsm).Column("nldsm");
            Map(f => f.Dycardno).Column("dycardno");


        }
    }
}